﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;

namespace WcfService
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class AjaxService:IAjaxService
    {
        public string DoWork()
        {
            // 在此处添加操作实现
            return "Hello World!";
        }

        public string GetData(string id)
        {
            return "You entered:" + id;
        }
    }
}
